#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QString>
#include <QMessageBox>
#include <QSqlDatabase>
#include <QSqlError>
#include <QDebug>
#include <QSqlQuery>
#include "AdminCenter.h"
#include <registerwindow.h>
#include "readercenter.h"
#include "dboperation.h"
#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

//static void widgetShow(void*);

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_logInButton_clicked();

    void on_registerButton_clicked();

private:
    Ui::MainWindow *ui;
    DBOperation *db;
    registerWindow *reg;
    AdminCenter *adm;
    ReaderCenter *rea;
};
#endif // MAINWINDOW_H
